/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javaclientcp3110.View.Product;

import common.Objects.Product;
import javaclientcp3110.Model.MainModel;
import javax.swing.JComboBox;

/**
 *
 * @author Slasher
 */
public class ProductListView extends JComboBox {

    public ProductListView() {
    }

    public void updateProductView() {
        removeAllItems();
        for (Product product : MainModel.getInstance().getProducts()) {
            addItem(product);
        }
    }

}
